﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="monitor_manage.aspx.cs" Inherits="HYSoft.Web.monitor_manage" %>

<%@ Register Src="~/Controls/menuhoutai.ascx" TagName="menuhoutai" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/Search.ascx" TagName="uc3" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="JS/public.js" type="text/javascript"></script>
    <style type="text/css">
        .main
        {
            margin-left: auto;
            margin-right: auto;
            width: 1140px;
            height: auto;
            min-height: 700px;
            background-color: White;
        }
        tr td a
        {
            text-decoration: none;
            color: #A8A8A8;
            font-size: 13px;
        }
        tr td a:hover
        {
            color: red;
        }
        .part_ws_bt
        {
            height: 34px;
            line-height: 34px;
            background: url(../Images/biaotilan.png) no-repeat;
            font-family: "微软雅黑";
            font-size: 14px;
            padding-left: 22px;
            color: #fff;
            letter-spacing: 1px;
        }
        
        .table1
        {
            background: #FFF url(images/w_p5.jpg) repeat-x;
            background-position: bottom;
            width: 850px;
            margin-left: auto;
            margin-right: auto;
            border-spacing: 0px; /*background-color:#93C726;*/
            border-right: 1px solid #d1d1d1;
            border-top: 1px solid #d1d1d1;
            border-bottom-width: 0px;
        }
        .table1 tr
        {
            height: 20px;
        }
        .table1 td
        {
            border-left: 1px solid #b1b1b1;
            border-bottom: 1px solid #b1b1b1;
        }
        .part_wss
        {
            width: 75%;
            margin-left: auto;
            margin-right: auto;
            border: 1px solid #b1b1b1;
        }
        .part
        {
            margin-top: 2%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc1:menuhoutai ID="menus" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="main">
        <div>
            <img src="Images/top.PNG" /></div>
        <div class="part_wss">
            <div class="part_ws_bt">
                管理监测点</div>
            <div class="part">
                <table class="table1">
                    <tr style="background: url(images/ws3.jpg) repeat-x; font-weight: bold;">
                        <td>
                            所在区
                        </td>
                        <td>
                            所在县
                        </td>
                        <td>
                            具体地址
                        </td>
                        <td>
                            现场联系人1
                        </td>
                        <td>
                            联系人1电话
                        </td>
                        <td>
                            所属传感器数量
                        </td>
                        <td>
                            删除操作
                        </td>
                    </tr>
                    <asp:ListView ID="ListView1" runat="server">
                      <ItemTemplate>
                            <tr onmouseover="overColor(this)" onmouseout="outColor(this)">
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("m_area_name")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("m_area_id")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("[Addr]") %></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("Contact_name1")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("Contact_mobile1")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("count") %>&nbsp;(个)</a>
                                </td>
                                <td>
                                    &nbsp;<a href="javascript:Del(<%#Eval("Index")%>);" class='list_link'><img src="Images/del.gif"
                                        border="0" alt="删除" /></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                  <%--  <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <tr onmouseover="overColor(this)" onmouseout="outColor(this)">
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("m_area_name")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("m_area_id")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("[Addr]") %></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("Contact_name1")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("Contact_mobile1")%></a>
                                </td>
                                <td>
                                    &nbsp;<a href="monitor_list.aspx?id=<%#Eval("index")%>"><%#Eval("count") %>&nbsp;(个)</a>
                                </td>
                                <td>
                                    &nbsp;<a href="javascript:Del(<%#Eval("Index")%>);" class='list_link'><img src="Images/del.gif"
                                        border="0" alt="删除" /></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>--%>
                    <tr><td colspan="7" style="width:579px;font-size:9pt;text-align:right; height:30px;">
             <asp:Label ID="Label4" runat="server" Text="当前页码为"></asp:Label>[
            <asp:Label ID="labPage" runat="server" Text="1"></asp:Label>&nbsp;]
            <asp:Label ID="Label5" runat="server" Text="总页码为"></asp:Label>[
             <asp:Label ID="labBackPage" runat="server" ></asp:Label>&nbsp;]
             &nbsp;<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;<asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnBack_Click">最后一页</asp:LinkButton>&nbsp;&nbsp;

        </td></tr>
                </table>
                <div style="width: 850px; margin: 0px auto 0px auto; height: 80px;">
                    <img src="images/p_2.jpg" style="width: 850px;" />
                    <uc3:uc3 ID="Uc1" runat="server" />
                </div>
            </div>
            <div class="part_2_7">
            </div>
        </div>
        <div style="width: 100%; height: 100px;">
        </div>
    </div>
    <script type="text/javascript">      
      function Del(ID) {
            if (confirm('你确认删除监测点信息?')) {
                self.location = "?Type=Del&ID=" + ID;
            }
        }
    </script>
</asp:Content>
